import java.util.ArrayList;


public class Node {

	private ArrayList<Node> children = new ArrayList<Node>() ;
	private String name;
	
	public Node(String string) {
		name = string;
	}

	public void setChildren(ArrayList<Node> children) {
		this.children = children;
	}

	public ArrayList<Node> getChildren() {
		return children;
	}
	
	public void addChild(Node n){
		children.add(n);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
}
